﻿using System;
using System.Collections.Generic;
using System.Text;

namespace computerMaker
{
    public class computerController
    {
        computerBuilder computerBuilder;

        public computerController(computerBuilder builder)
        {
            this.computerBuilder = builder;
        }

        public computer Construst()
        {
            computerBuilder.buildCpu();
            computerBuilder.buildDisplay();
            computerBuilder.buildHardDisk();
            computerBuilder.buildHost();
            computerBuilder.buildMemory();
            return  computerBuilder.GetComputer();
        } 
        
    }
}
